import request from '@/utils/request';

// 列表
export const getList = () => {
  return request.get('/api/menu')
};
// 列表
export const getTree = () => {
  return request.get('/api/menu/tree')
};
export const add = (data) => {
  return request.post('/api/menu',data)
};
// 修改
export const update = (data) => {
  return request.put('/api/menu',data)
};
// 修改
export const del = (id) => {
  return request.delete(`/api/menu/${id}`)
};
